﻿/*********************************************************************************/
/**    Sims3Pack Readme Generator                                               **/
/**    Copyright (C) 2012  Anja Knackstedt                                      **/
/**                                                                             **/
/**    This program is free software: you can redistribute it and/or modify     **/
/**    it under the terms of the GNU General Public License as published by     **/
/**    the Free Software Foundation, either version 3 of the License, or        **/
/**    (at your option) any later version.                                      **/
/**                                                                             **/
/**    This program is distributed in the hope that it will be useful,          **/
/**    but WITHOUT ANY WARRANTY; without even the implied warranty of           **/
/**    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            **/
/**    GNU General Public License for more details.                             **/
/**                                                                             **/
/**    You should have received a copy of the GNU General Public License        **/
/**    along with this program.  If not, see <http://www.gnu.org/licenses/>.    **/
/**                                                                             **/
/*********************************************************************************/




using System.Collections.Generic;

namespace Sims3PackReadmeGenerator.ContentDesciption
{
    /// <summary>
    /// household specific information
    /// </summary>
    class PackagedHouseholdDescription : PackagedFileDescription, IPackagedSimGroupDescription
    {
        #region fields

        private List<SimpleSimDescription> _simList;

        #endregion

        #region properties

        public string MetaName      { get; set; }
        public string NumOfThumbs   { get; set; }
        public string Bio           { get; set; }
        public string HouseholdName { get; set; }
        public string Funds         { get; set; }

        #endregion

        #region constructor

        public PackagedHouseholdDescription(PackagedFileDescription packFileDescr)
        {
            _simList = new List<SimpleSimDescription>();

            this.Name           = packFileDescr.Name;
            this.Length         = packFileDescr.Length;
            this.Offset         = packFileDescr.Offset;
            this.Guid           = packFileDescr.Guid;
            this.ContentType    = packFileDescr.ContentType;
        }

        #endregion

        #region methods

        public void addSimDescription(SimpleSimDescription simDescription)
        {
            _simList.Add(simDescription);
        }

        public List<SimpleSimDescription> getSimsList()
        {
            return _simList;
        }
       
        public string getMetaName()
        {
            return this.MetaName;
        }

        public string getHouseholdName()
        {
            return this.HouseholdName;
        }

        public string getHousholdBio()
        {
            return this.Bio;
        }

        public string getHousholdFunds()
        {
            return this.Funds;
        }
        
        #endregion
    }
}
